package chapter01;

public class Test20_overload {
    public static void main(String[] args) {
        System.out.println(add(10,20));
        System.out.println(add(2.0,3.0));
        System.out.println(add(10,20,30));
    }
    public static int add(int a,int b){
        return a+b;
    }
    public static double add(double a,double b){
        return a+b;
    }
    public static int add(int a,int b,int c){
        return a+b+c;
    }
}
